package org.dydl.dao.system.repository;

import java.util.Date;
import java.util.List;

import org.dydl.model.system.SysLog;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ISysLogRepository extends CrudRepository<SysLog, Integer> {

	@Query("FROM SysLog ")
	public List<SysLog> searchList(int page, int rows, String operatorId, Date beginDate, Date endDate);

	@Query("FROM SysLog WHERE id IN (1,2,3,4,5,6,7,8,9,10)")
	public List<SysLog> getAll();
}
